// 导入request, 用于发送axios请求
import request from '@/utils/request'

/**
 * 获取病人的治疗计划
 */
export const planGetTreatmentPlanService = (
  patientId,
  recordId
) => {
  // 使用路径参数
  return request.get(
    `/treatmentPlan/getTreatmentPlan/${patientId}/${recordId}`
  )
}

/**
 * 添加或修改病人的治疗计划
 */
export const planSaveTreatmentPlanService = (
  patientId,
  recordId,
  data
) => {
  // 使用路径参数
  return request.post(
    `/treatmentPlan/saveTreatmentPlan/${patientId}/${recordId}`,
    data
  )
}
